package com.example.ch04.pojo;

import lombok.Data;

import java.io.Serializable;


public class SysRole extends SysUser implements Serializable{
  private int roleId;
  private String roleName;
  private String roleDesc;
  private int roleFlag;


  @Override
  public String toString() {
    return "SysRole{" +
            "roleId=" + roleId +
            ", roleName='" + roleName + '\'' +
            ", roleDesc='" + roleDesc + '\'' +
            ", roleFlag=" + roleFlag +
            '}';
  }

    public SysRole() {
  }

  public SysRole(String roleName, String roleDesc , int roleFlag) {
    this.roleName = roleName;
    this.roleDesc = roleDesc;
    this.roleFlag = roleFlag;
  }

  public SysRole(String roleName, String roleDesc , SysRole role , int roleFlag) {
    this.roleName = roleName;
    this.roleDesc = roleDesc;
    this.roleFlag = roleFlag;
  }

  public int getRoleId() {
    return roleId;
  }

  public void setRoleId(int roleId) {
    this.roleId = roleId;
  }


  public String getRoleName() {
    return roleName;
  }

  public void setRoleName(String roleName) {
    this.roleName = roleName;
  }


  public String getRoleDesc() {
    return roleDesc;
  }

  public void setRoleDesc(String roleDesc) {
    this.roleDesc = roleDesc;
  }


  public int getRoleFlag() {
    return roleFlag;
  }

  public void setRoleFlag(int roleFlag) {
    this.roleFlag = roleFlag;
  }

}
